-- GENERATED SPELL FOR [Silverwing Warrior] --


function spell0_12897(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12897', 15000, 1)
end

function Sorts_12897(pUnit, Event)
local choix_sorts_12897 = math.random(0, 0)
if choix_sorts_12897 == 0 then
pUnit:RegisterEvent('spell0_12897', 1, 1)
end
end

function mob12897_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12897', math.random(1500, 3000), 1)
end

function mob12897_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12897_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12897_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12897, 1, 'mob12897_Action')
RegisterUnitEvent(12897, 2, 'mob12897_Leave')
RegisterUnitEvent(12897, 3, 'mob12897_Kill')
RegisterUnitEvent(12897, 4, 'mob12897_Die')
